import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams ,ViewController} from 'ionic-angular';
import { HttpProvider } from '../../providers/http/http';
import { StorageProvider } from '../../providers/storage/storage';
import { DialogProvider } from '../../providers/dialog/dialog';
import { DomSanitizer } from '@angular/platform-browser';

/**
 * Generated class for the NewsDetailPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-news-detail',
  templateUrl: 'news-detail.html',
})
export class NewsDetailPage {
//定义全局变量
information = {
		titles: '',
		summary:'',
		description:'',
		date:'',
	};
	constructor(
		public navCtrl: NavController,
		public viewCtrl: ViewController,
		public navParams: NavParams,
		public http: HttpProvider,
		public storage: StorageProvider,
		public dialog: DialogProvider,
		private sanitizer: DomSanitizer) {}
		
		assembleHTML(strHTML:any) {
			return this.sanitizer.bypassSecurityTrustHtml(strHTML);
		}

  ionViewDidLoad() {
  	this.information = this.navParams.get('meg');
  	
    console.log('ionViewDidLoad NewsDetailPage');
    console.log(this.information)
 
  }

   

}
